package com.example.service;

import com.example.pojo.Bulletins;
import com.example.pojo.Likes;
import com.example.pojo.Posts;
import com.example.pojo.Users;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2024-06-01
 */
public interface IUsersService extends IService<Users> {

    List<Users> getAllUsers();

    List<Users> getFindUsers(String select,String input);

    void StatusChange(int status, int uid);

    Users Login(String name,String password);

    void Register(String name,String phone,String password);

    void More(int uid);

    Users findByName_pwd(String name,String password);
    Users findByUid(Integer uid);

    List<Users> findApply(Integer bid);

    List<Posts> findInformation(Integer uid);

    List<Users> findAttention(Integer uid);

    boolean gz(Integer uid ,Integer otherid);
    boolean addGz(Integer uid, Integer otherid);
    boolean delGz(Integer uid, Integer otherid);

    boolean gzbar(Integer uid, Integer bid);

    boolean addGzbar(Integer uid, Integer bid);

    boolean delGzbar(Integer uid, Integer bid);


    void updateUser(Integer uid, String name, String phone, String password, String image, String gender, Integer age, String ipaddress);

    boolean updateUser_image(Integer uid,String image);
    String Like(Integer uid,Integer pid,Integer likes,Integer shares,Integer coins,Integer otherid);

    List<Bulletins> findText(Integer uid);

    void addText(Integer uid, String content);

    Users userDetails(Integer uid);

    void addApply(Integer uid, Integer bid);
}
